package com.carefree.bookmall.common.utils;

/**
 * @ClassName:Constant
 * @Description:
 * @Author Tengbin
 */
public class Constant {

    /**
     * 存储于session的用户信息
     */
    public static final String SESSION_USER = "usered";

    /**
     * 存储于session的订单信息
     */
    public static final String SESSION_ORDER = "order";

    /**
     * 购物车
     */
    public static final String SESSION_CART = "carts";

    /**
     * 提示消息
     */
    public static final String MESSAGE = "msg";

    /**
     * 错误消息提示
     */
    public static final String FAIL_MESSAGE = "failMsg";

    /**
     * redis存储短信验证码前缀
     */
    public static final String REDIS_SMS_PREFIX = "sms:";

    /**
     * redis存储书籍分类信息的key
     */
    public static final String REDIS_BOOKTYPES="booktyeps";

    /**
     * modelAndView的属性名称
     */
    public static final String ATTRIBUTENAME = "message";


    /**
     * 登录消息提示
     */
    public static final String LOGIN_MESSAGE_NONE = "没这号人物哦...";
    public static final String LOGIN_MESSAGE_FAIL = "用户名或密码错误...";

    /**
     * 注册用户提示消息
     */
    public static final String REGISTER_MESSAGE_SUCCESS = "注册成功~请输入登录信息";
    public static final String REGISTER_MESSAGE_FAIL = "注册失败！请确认信息是否完整或联系管理";
    public static final String REGISTER_ERROR_CODE = "验证码错误！";
    /**
     * 数据添加信息提示
     */
    public static final String INSERT_MESSAGE_SUCCESS = "信息添加成功~";
    public static final String INSERT_MESSAGE_FAIL = "信息添加失败！请确认信息是否完整或联系管理员";

    /**
     * 数据修改信息提示
     */
    public static final String UPDATE_MESSAGE_SUCCESS = "信息修改成功~";
    public static final String UPDATE_MESSAGE_FAIL = "信息修改失败！请确认信息是否完整或联系管理员";


    /**
     * 热销、新品、条幅
     */
    public static final String BOOK_ALL = "all";
    public static final String BOOK_HOT = "hot";
    public static final String BOOK_NEW = "new";
    public static final String BOOK_SCROLL = "scroll";

}
